import { req } from '../utils/req.js';

export default {
  //获取手机号
  getPhone(param) {
    return req.post("api/index/editPhone", param)
  },
  //发送验证码
  send_sms(param) {
    return req.post("api/common/send_sms", param)
  },
  //保存用户头像昵称
  saveUserInfo(param) {
    return req.post("api/home/user/holdInfo", param)
  },
  //保存用户头像昵称
  haveUserInfo(param) {
    return req.get("api/home/user/holdInfo", param)
  },
  getRecommends(){
    return req.post("api/home/item/getRecommends")
  },
  getBannerList(){
    return req.get("api/home/item/banner")
  },
  getShareData(){
    return req.get("api/home/item/share")
  }
}